package com.ruoyi.user.mapper;

import com.ruoyi.user.domain.RefundInfo;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author: houyong
 * @date: 2025年11月20日 15:44
 */
public interface RefundInfoMapper {
    List<RefundInfo> listSearchRefundInfoByOrderId(String orderId);

    /**
     * 根据订单id和渠道查询退款总金额
     *
     * @param orderId
     * @param channel
     * @return
     */
    BigDecimal searchRefundSumPayByOrderId(String orderId, String channel);

    RefundInfo searchRefundInfoByRefundId(String refundId);

    void save(RefundInfo refundInfo);

    void update(RefundInfo refundInfo);
}
